package com.netty.LongConnect;

/**
 * @author: sun.hongliang
 * @create: 2019/02/25 10:49
 */
public class ClientStart {
    public static void main(String[] args) throws InterruptedException {
        Client client = new Client(8888, "localhost");
        client.start();
        Thread.sleep(1000);
        String infoString = "";
        for (int i = 0; i < 300; i++) {
            infoString = "hh" + i;
            RequestInfo requestInfo = new RequestInfo();
            requestInfo.setType((byte) 1);
            requestInfo.setInfo(infoString);
            client.sendMessage(requestInfo);
        }
    }
}
